using System;
using PHSRAG.Insight21.Common.Pages;
using PHSRAG.Utility;

namespace PHSRAG.Insight21.Humans
{
    /// <summary>
    ///  Provides searching facilities and displays inactive protocols the logged-in user
    /// has access to
    /// </summary>
    public partial class InactiveProtocols : GridPage
    {
        #region Web Form Designer generated code

        public InactiveProtocols() : base()
        {
        }

        ///<summary>Initializes components used by the page.</summary>
        protected override void OnInit(EventArgs e)
        {
            //
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.
            //
            InitializeComponent();
            base.OnInit(e);
        }

        private void InitializeComponent()
        {
            this.Load += new System.EventHandler(this.OnPageLoad);
        }

        #endregion

        /// <summary>
        /// Sets page-specific properties on the user control that makes up the bulk
        /// of the page
        /// </summary>
        protected void OnPageLoad(object sender, EventArgs e)
        {
            protocolsControl.BreadCrumb.Add(
                "Inactive Protocols",
                Settings.GetKeyValue("SubNavigation.Humans.InactiveProtocolsURL", ""),
                Settings.GetKeyValue("BreadCrumb.SummaryPageLevel", 1));

            protocolsControl.SelectedSubNavigationLink = "Inactive Protocols";
        }
    }
}